<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core" xml:lang="en" lang="en"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <body>
    <ui:composition template="/templates/template.xhtml">
    <ui:define name="body">
    <h:form>
        <h:panelGrid columns="1">
            <h:panelGroup>
                <h:outputText value="#{editconfigright.editconfiglabel}"/>
                <h:inputText id="editnameconfig" value="#{editconfigrightbean.deltaConfig.configName}" required="true" requiredMessage="#{validationmessages.configfieldalert}"  validator="nameconfigvalidator"/>
            </h:panelGroup>
            <h:panelGrid border="1" columns="1">
                <h:panelGroup>
                    <h:outputText value="#{editconfigright.headcomment}"/>
                    <h:inputText value="#{editconfigrightbean.deltaConfig.configList.headerComment}" validator="propertyconfigvalidator"/>
                </h:panelGroup>
                <h:panelGroup>
                    <h:outputText value="#{editconfigright.endcomment}"/>
                    <h:inputText value="#{editconfigrightbean.deltaConfig.configList.footerComment}" validator="propertyconfigvalidator"/>
                </h:panelGroup>
            </h:panelGrid>
            <h:dataTable border="1" value="#{editconfigrightbean.deltaConfig.configList.elements}" var="config">
                <h:column>
                    <h:inputText value="#{config.key}" required="true" requiredMessage="#{validationmessages.configvariablealert}" validator="propertyconfigvalidator"/>
                </h:column>
                <h:column>
                    <h:outputText value=" = "/>
                </h:column>
                <h:column>
                    <h:inputText value="#{config.value}" validator="propertyconfigvalidator"/>
                </h:column>
            </h:dataTable>
            <h:panelGroup>
                <h:commandButton value="#{editconfigright.saveconfig}" action="#{editconfigrightbean.saveEditedConfig}"/>
                <h:commandButton value="#{editconfigright.cancelconfig}" action="#{editconfigrightbean.cancelReconfig}"/>
            </h:panelGroup>
            <h:commandButton value="#{editconfigright.downloadconfig}" action="#{downloadrightbean.goDownloadPage}"/>
        </h:panelGrid>
    </h:form>
    </ui:define>
    </ui:composition>
</body>
</html>